package com.ez.supervise.model.sys;

import java.util.Date;

import com.ez.supervise.model.base.BaseEntity;

public class User extends BaseEntity {

    private static final long serialVersionUID = 2352996591183212752L;
    private String loginId;// 登录ID
    private String password;
    private Long orgId;// 关联到表SYS_DEPARTMENT的id
    private String userName;// 用户姓名
    private String email;
    private String phone;
    private String mobile;
    private String address;
    private String zipCode;// 邮政编码
    private String sex;// 性别 m：男 f：女
    private Date birthday;// 出生日期
    private String status;// '1' alive：活动 stop：停止活动
    private String duty; // 职务代码 关联到sys_resource中res_type='duty'
    private String isManager; // 是否管理者
    private String isDemocracy; // 是否民主评议员：y:是民主评议员，n：不是
    private Long democracyId; // 民主评议员类型id
    /** 状态:(alive：活动 ) */
    public static final String STATUS_ALIVE= "alive";
    /** 状态:(stop：停止活动) */
    public static final String STATUS_STOP = "stop";
    public String getLoginId() {
	return loginId;
    }

    public void setLoginId(String loginId) {
	this.loginId = loginId;
    }

    public String getPassword() {
	return password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    public Long getOrgId() {
	return orgId;
    }

    public void setOrgId(Long orgId) {
	this.orgId = orgId;
    }

    public String getUserName() {
	return userName;
    }

    public void setUserName(String userName) {
	this.userName = userName;
    }

    public String getEmail() {
	return email;
    }

    public void setEmail(String email) {
	this.email = email;
    }

    public String getPhone() {
	return phone;
    }

    public void setPhone(String phone) {
	this.phone = phone;
    }

    public String getMobile() {
	return mobile;
    }

    public void setMobile(String mobile) {
	this.mobile = mobile;
    }

    public String getAddress() {
	return address;
    }

    public void setAddress(String address) {
	this.address = address;
    }

    public String getZipCode() {
	return zipCode;
    }

    public void setZipCode(String zipCode) {
	this.zipCode = zipCode;
    }

    public String getSex() {
	return sex;
    }

    public void setSex(String sex) {
	this.sex = sex;
    }

    public Date getBirthday() {
	return birthday;
    }

    public void setBirthday(Date birthday) {
	this.birthday = birthday;
    }

    public String getStatus() {
	return status;
    }

    public void setStatus(String status) {
	this.status = status;
    }

    public String getDuty() {
	return duty;
    }

    public void setDuty(String duty) {
	this.duty = duty;
    }

    public String getIsManager() {
	return isManager;
    }

    public void setIsManager(String isManager) {
	this.isManager = isManager;
    }

    public String getIsDemocracy() {
	return isDemocracy;
    }

    public void setIsDemocracy(String isDemocracy) {
	this.isDemocracy = isDemocracy;
    }

    public Long getDemocracyId() {
	return democracyId;
    }

    public void setDemocracyId(Long democracyId) {
	this.democracyId = democracyId;
    }

    /** 是否管理者 */
    public boolean isManager() {
	return FLAG_YES.equals(isManager);
    }

    /** 是否民主评议员 */
    public boolean isDemocracy() {
	return FLAG_YES.equals(isDemocracy);
    }
}
